import React from 'react';
import './App.css';
import Home from "./pages/Home"
import {Route, Switch, withRouter} from "react-router-dom";

class App extends React.Component {

    componentWillMount() {
        console.log(this.location)
        this.props.history.replace({pathname: "/Home", search: this.props.location.search});
    }

    render() {
        return (
            <div className="App">
                <Switch>
                    <Route exact path="/home" component={Home}/>
                </Switch>
            </div>
        );
    }
}

export default withRouter(App);
